/**
 * 
 */
package weibo4j.crawler;

/**
 * @author longrui
 *
 */
public class UserInfoQueueRecord extends QueueRecord {
	public long userId;
	
	public UserInfoQueueRecord(long userId, String enqueueTime){
		super();
		this.userId = userId;
		this.enqueueTime = enqueueTime;
	}
	
	public String[] getRecord(){
		String[] res = new String[2];
		res[0] = Long.toString(userId);
		res[1] = enqueueTime;
		return res;
	}
	public static String getFieldString(){
		return "(user_id, enqueue_time)";
	}
	public static String getEmptyValueString(){
		return "(?, ?)";
	}
	
	public String getUserInfoQueueRecordSQLString(){
		return "insert into queue4user set user_id=" + Long.toString(userId)
			+ ", enqueue_time='" + enqueueTime + '\'';
	}
}
